function addHome() {
		var param = getUrlParameters();
		var userId = param.userId;
		var userNoHome = param.homeUserNo;
		//判断信息格式
		var userNo = $("#userId").val();
		var phone = $("#hsPhoneNo").val();
		var identity = $("#identity").val();

		if (userNo == null || userNo == '') {
			alert("用户编号不能为空");
			return false;
		}
		if (phone == null || phone == '') {
			alert("电话号码不能为空");
			return false;
		}
		if (phone != null) {
			var reg = /^1[3|4|5|8][0-9]\d{4,8}$/;
			if (!reg.test(phone)) {
				alert("手机号码格式不对！");
				return;
			}
		}
		/*if(identity==null||identity==""){
			alert("身份证号不可以为空");
			return ;
		}*/
		$.ajax({
			url : preUrl + "home/addhome",
			type : "POST",
			dataType : "json",
			data : {
				"phoneNo":phone,"userNo":userNo,"id":userId
			},
			success : function(data) {
				if (data.rspCode == "0000") {
					alert("添加房源成功");
						window.location.href = preUrl
							+ "/wechat/user/home.html?userId="
							+ userId + "&homeUserNo=" + userNoHome;
				} else{
					
					alert(data.rspMsg||"系统繁忙，稍后重试");
					return;
				}
			}
		});

	}